<?php

namespace app\index\model;

class Verifycode
{

  function __construct($w = 150, $h = 50)
  {
    include_once LIB_PATH . 'cls.verifycode.php';

    $w = !empty($w) ? $w : VERIFYCODE_WIDTH;
    $h = !empty($h) ? $h : VERIFYCODE_HEIGHT;

    $_vc = new \VerifyCode($w, $h);
    $_vc->doimg();
    $_SESSION['verifycode'] = $_vc->getCode();
  }

  function index()
  {
  }

  function __destruct()
  {
  }
}